<!DOCTYPE html>
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8" %>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>我是党员我承诺</title>
    <link href="/css/webuploader.css" rel="stylesheet"/>
    <link rel="stylesheet" type="text/css" href="/css/style.css" />
    <jsp:include page="../comm/comm.jsp"/>
</head>
<body onload="redirectUrl()">
<input type="hidden" value="${openId}" id="openId">
<script type="text/javascript">
    function redirectUrl(){
        var openId=$("#openId").attr("value");
        var  activityId=config.getQueryString("activityId");
       // alert(openId);
        if(!openId) {
           // alert("为空");
            window.location.href = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxaa974928147c87b9&redirect_uri=http%3a%2f%2fwx.sxbq998.cn/cyuser/zhuli%3factivityId="+activityId+"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect";
        }else{
           // alert("不为空");
            window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxaa974928147c87b9&redirect_uri=http%3a%2f%2fwx.sxbq998.cn%2fcyuser%2fzhuli%3fopenId%3d"+openId+"%26activityId="+activityId+"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect";
        }
    }
</script>
</body>
</html>
